package com.xdf.wxbebarrel.utils;

import java.util.Map;
import java.util.Optional;

/**
 * @author chanchaw
 * @create 2022-11-24 16:02
 */
public class WechatResponseResolver {
    public static String getScene(Map<String,String> resMap){
        String eventKey = Optional.ofNullable(resMap.get("EventKey")).orElse("");;
        if(eventKey.length() == 0) return "";
        // qrscene_银海印花,BC,本厂,
//        String ret = eventKey.substring(8);
        return eventKey;
    }
}
